{% extends 'base.html' %}

{% block content %}
  <h1>待办事务详情</h1>
  <div class="card mb-4">
    <div class="card-body">
      <h5 class="card-title">{{ task.content }}</h5>
      <p class="card-text"><strong>所属班级：</strong>{{ task.class_info }}</p>
      <p class="card-text"><strong>开始时间：</strong>{{ task.start_time|date:"Y-m-d H:i" }}</p>
      <p class="card-text"><strong>截止时间：</strong>{{ task.end_time|date:"Y-m-d H:i" }}</p>
      <p class="card-text"><strong>是否处理：</strong>{% if task.is_completed %}已完成{% else %}未完成{% endif %}</p>
      <p class="card-text"><strong>处理措施：</strong>{{ task.handling_measures|default:"无" }}</p>
    </div>
  </div>
  <a href="{% url 'core:task_list' %}" class="btn btn-secondary">返回列表</a>
  <a href="{% url 'core:task_update' task.pk %}" class="btn btn-primary">编辑</a>
{% endblock %}